<div data-role="navbar" style="margin-bottom: 20px;"> 
	
</div> 

<? foreach($thermostats as $t_name => $t){?>
	<div class="row span7">
		<div class="well span6 t_name"> <h3> <?=$t_name?> | <?=$t->current->mode?></h3></div>

		<div class="well span2" style="">
			<div class="span2 actuel">
				<? if($t->current->mode == "auto"){
					?>
					<h5> Mode <?=$t->getType()?> </h5>
					<span> <?=$t->getTemp()?>° </span>
					<?
				}elseif($t->current->mode == "manuel"){?>
					<h5> Réglage manuel </h5>
					<span> 20° </span>
				<?}elseif($t->current->mode == "off"){?>
				<h5> </h5>
					<span> Off </span>
				<?}?>
				

			</div>
		</div>

		<div class="well span2" style="">
			<div class="span2 actuel">
				<h5> Actuel </h5>
				<span> <?=$t->current->temperature?>° </span>

			</div>
		</div>

		<div class="well span2" style="">
			<div class="span2 actuel">
				<h5> Humidité </h5>
				<span> <?=$t->current->humidity?>% </span>

			</div>
		</div>
	</div>
<?}?>